package com.changcheng.pojo;
import com.sun.istack.NotNull;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.validation.annotation.Validated;

//import javax.validation.constraints.NotNull;
import java.io.Serializable;
@AllArgsConstructor
@NoArgsConstructor
@Data
@Validated
public class User implements Serializable {
    @NotNull
    private int id;
    @NotNull
    private String username;
    @NotNull
    private String password;
    @NotNull
    private String name;
    private String profile;
}
